* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}


header {
  background-color: #4caf50;
  color: white;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo img {
  height: 50px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 6px 10px;
  transition: background 0.3s, border-radius 0.3s;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}

.banner {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;     
}

.banner-text {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px 25px;
  color: white;
  border-radius: 8px;
  max-width: 60%;
}

.banner-text h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}


.highlights {
  padding: 60px 20px;
  text-align: center;
  background-color: #ffffff;
}

.highlights h2 {
  margin-bottom: 40px;
  font-size: 2rem;
  color: #333;
}

.product-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: white;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.product-card h3 {
  margin: 0.5rem 0;
  text-align: center;
}

.product-card p {
  color: #2c3e50;
  font-weight: bold;
  margin: 0.5rem 0;
}

.product-card button {
  width: 100%;
  padding: 0.75rem;
  background-color: #2c3e50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 0.5rem;
}

.product-card button:hover {
  background-color: #34495e;
}


footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 25px 15px;
  margin-top: 60px;
}

footer a {
  color: #ddd;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


@media (max-width: 768px) {
  .banner-text {
    max-width: 90%;
    font-size: 1rem;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-grid {
    flex-direction: column;
    align-items: center;
  }
}


.cart-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.cart-section h1 {
  text-align: center;
  margin-bottom: 2rem;
}

#cart-items {
  margin-bottom: 2rem;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
  gap: 1rem;
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-price {
  font-weight: bold;
  color: #2c3e50;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-summary {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.cart-summary .total {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

#checkout-btn {
  width: 100%;
  padding: 1rem;
  background-color: #2c3e50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
}

#checkout-btn:hover {
  background-color: #34495e;
}


.quantity-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  background-color: #f8f9fa;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  background-color: #e9ecef;
}

.quantity-selector input {
  width: 50px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.25rem;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: #666;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 1rem 0;
}


.remove-btn, .cart-item button {
  background-color: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 0.5rem;
}
.remove-btn:hover, .cart-item button:hover {
  background-color: #c0392b;
  color: #fff;
}

